package com.controller;

import com.service.TestImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author jlc
 * @date 2024/8/21 14:27
 */
@Api(tags = "测试接口功能")
@RestController
@RequestMapping("/test")
public class TestController {


    @Resource
    private TestImpl test;

    @ApiOperation(value = "登录")
    @GetMapping("/login")
    public String login(String name) {

        System.out.println("这是用户的输出结果;{}" + name);

        String code = test.getName(name);

        return code;

    }


}
